package com.nanjia.boot.delivery.converter;

import com.nanjia.boot.delivery.model.entity.Invoice;
import com.nanjia.boot.delivery.model.form.InvoiceForm;
import org.mapstruct.Mapper;

/**
 * 发票管理对象转换器
 *
 * @author 周洋
 * @since 2025-06-13 10:55
 */
@Mapper(componentModel = "spring")
public interface InvoiceConverter{

    InvoiceForm toForm(Invoice entity);

    Invoice toEntity(InvoiceForm formData);
}